﻿using System;
using System.Text;

namespace GPS.GPSLanguage
{
    class AzimuthToken
    {
        internal static void ParseLanguage(GPSData gpsData, System.Collections.Queue q)
        {
            String azToken = (String)q.Dequeue();
            int azNumber = 0;
            try
            {
                if(azToken.Length>0)
                    azNumber = int.Parse(azToken);
            }
            catch { }

            gpsData.SetAzimuth(gpsData.CurrentSatelliteCount, azNumber);
        }
    }
}
